<template>
    <view :class="ns.b()">
        <view class="label">
            <text class="label">{{ label }}</text>
        </view>
        <view class="value">
            <slot />
        </view>
    </view>
</template>

<script setup lang="ts">
import { useNamespace } from "@/hooks";

const ns = useNamespace("form-item");

const props = defineProps({
    label: {
        type: String,
        default: ""
    }
});
</script>

<style scoped lang="scss"></style>